print('Welcome to python银行!\n')
bank_money = 10000

def add_money():
    global bank_money
    x = input('请输入存款金额:')
    bank_money += int(x)
    print('余额: ', bank_money)

def get_money(a):
    while True:
        user = input('1取款,2存款')
        if user == '1':
            a = input('请输入取款金额:')
            global bank_money
            bank_money -= int(a)
            print('enclosing ','余额 : ',bank_money)
        elif user == '2':
            add_money()
        elif user == '3':
            print('退出成功!')
            break
get_money(1000)


